package com.iptv.grape.net.Entity;

import android.util.Log;

import com.google.gson.Gson;

public class LoginResult extends NetBaseResult{
    private LoginData data;

    public LoginData getData() {
        return data;
    }

    public void setData(LoginData data) {
        this.data = data;
    }


    public static LoginResult CreateForJson(String json){
        try {
            LoginResult loginResult = new Gson().fromJson(json, LoginResult.class);
            return loginResult;
        }
        catch (Exception e){
            Log.e("LoginResult", e.getMessage() );
            return null;
        }
    }
}
